package edu.stu.cs.software.family.warehouse.domain;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import edu.stu.cs.software.family.base.domain.BaseEntity;

@Table(name = "O_WAREHOUSE_PRODUCT")
@Entity
public class Product extends BaseEntity<Long> {

	/**
	 * 
	 */
	private static final long serialVersionUID = 7318786211993655743L;

	@Column(name = "NAME")
	String name;	
	@Column(name = "CODE")
	String code;
	@Column(name = "NUM")
	int num;
	@Column(name = "PRICE")
	float price;
	
	

	@ManyToOne
	@JoinColumn(name = "CATEGORY_ID")
	Category Category;

	public int getNum() {
		return num;
	}

	public void setNum(int num) {
		this.num = num;
	}

	public float getPrice() {
		return price;
	}

	public void setPrice(float price) {
		this.price = price;
	}
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public Category getCategory() {
		return Category;
	}

	public void setCategory(Category Category) {
		this.Category = Category;
	}
	
}
